package top.dancun.easstudent.feign;

import org.apache.shiro.authz.annotation.RequiresPermissions;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.stereotype.Component;
import org.springframework.web.bind.annotation.*;
import top.dancun.common.utils.R;
import top.dancun.easstudent.config.FeignConfig;

import java.util.List;
import java.util.Map;

/**
 * @author dancun
 *
 */
@Component
@FeignClient(value = "EAS-baseInfo" ,configuration = FeignConfig.class)
public interface BaseInfoFeign {
    @PostMapping("/easbaseinfo/class/listnopage")
    public R getClassList(@RequestBody Map<String, Object> params);

    @RequestMapping("/easbaseinfo/class/info/{classId}")
    public R Classinfo(@PathVariable("classId") String classId);

    @PostMapping("/easbaseinfo/class/getbyids")
    public R getClassByIds(@RequestBody List<Integer> ids);


}
